// 自动生成模板GoodsOrder
package model

import (
	"gin-vue-admin/global"
)

// 如果含有time.Time 请自行import time包
type GoodsOrder struct {
      global.GVA_MODEL
      SelectGoodsId  int `json:"selectGoodsId" form:"selectGoodsId" gorm:"column:select_goods_id;comment:选品ID;type:bigint;size:19;"`
      GoodsName  string `json:"goodsName" form:"goodsName" gorm:"column:goods_name;comment:商品名称;type:varchar(512);size:512;"`
      CategoryFirst  string `json:"categoryFirst" form:"categoryFirst" gorm:"column:category_first;comment:一级类目;type:varchar(90);size:90;"`
      CategorySecond  string `json:"categorySecond" form:"categorySecond" gorm:"column:category_second;comment:二级类目;type:varchar(90);size:90;"`
      ImageUrl  string `json:"imageUrl" form:"imageUrl" gorm:"column:image_url;comment:图片;type:varchar(512);size:512;"`
      Supplier  string `json:"supplier" form:"supplier" gorm:"column:supplier;comment:供应商;type:varchar(512);size:512;"`
      PurchasePrice  float64 `json:"purchasePrice" form:"purchasePrice" gorm:"column:purchase_price;comment:进价;type:double;size:22;"`
      PreSalePrice  float64 `json:"preSalePrice" form:"preSalePrice" gorm:"column:pre_sale_price;comment:预售价;type:double;size:22;"`
      GoodsCount  int `json:"goodsCount" form:"goodsCount" gorm:"column:goods_count;comment:进货量;type:int;size:90;"`
      LogisticsNumber  string `json:"logistics" form:"logistics" gorm:"column:logistics;comment:物流单;type:varchar(225);size:225;"`
      GoodsOrderOwner  string `json:"goodsOrderOwner" form:"goodsOrderOwner" gorm:"column:goods_order_owner;comment:操作人;type:varchar(225);size:225;"`
      GoodsRelateSelectId  int `json:"goodsRelateSelectId" form:"goodsRelateSelectId" gorm:"column:goods_relate_select_id;comment:关联选品;type:int;size:19;"`
      GoodsOrderState  string `json:"goodsOrderState" form:"goodsOrderState" gorm:"column:goods_order_state;comment:进货单状态"`
      GoodsRelateBill  string `json:"goodsRelateBill" form:"goodsRelateBill" gorm:"column:goods_relate_bill;comment:关联财务单"`
      DeliveryOperator  string `json:"deliveryOperator" form:"deliveryOperator" gorm:"column:delivery_operator;comment:物流承运商"`
      DeliveryAmount  float64 `json:"deliveryAmount" form:"deliveryAmount" gorm:"column:delivery_amount;comment:物流运费"`
}

type BillInfo struct {
      BillList
      GoodsOrderId  int `json:"goodsOrderId" form:"goodsOrderId"`
      DeliveryAmount  float64 `json:"deliveryAmount" form:"deliveryAmount"`
      OrderAmount  float64 `json:"orderAmount" form:"orderAmount"`
}

func (GoodsOrder) TableName() string {
  return "goods_order"
}

const GoodsIdPrefix = 30000